<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMsgRulesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('msg_rules', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('minute')->default(0)->comment('分钟');
            $table->string('msg')->default("")->comment('回复');
            $table->integer('type')->default(1)->comment('类型(1、关注回复)');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('msg_rules');
    }
}
